package com.feng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.domain.ResponseResult;
import com.feng.domain.dto.AddRoleDto;
import com.feng.domain.dto.AdminUpdateRoleStatusDto;
import com.feng.domain.dto.UpdateRoleDto;
import com.feng.domain.entity.Role;

import java.util.List;

/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2023-04-20 00:18:01
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleByUserId(Long id);

    ResponseResult getList(Integer pageNum, Integer pageSize, String roleName, String status);

    ResponseResult updateRoleStatus(AdminUpdateRoleStatusDto statusDto);

    ResponseResult addRole(AddRoleDto addRoleDto);

    ResponseResult getRole(Long id);

    ResponseResult updateRole(UpdateRoleDto updateRoleDto);

    ResponseResult delRole(List<Long> ids);

    ResponseResult listAllRole();
}

